package com.tadpole.music.view.single;

import java.util.ArrayList;
import java.util.List;

/**
 * Created By 孙岩
 * on 2020/9/18
 */
public class RealQuestionSingle {
    private static RealQuestionSingle realQuestionSingle;

    private List<Boolean> list = new ArrayList<Boolean>();

    public static RealQuestionSingle getInstance() {
        if (realQuestionSingle == null) {
            synchronized (ErrIdSelectedSingle.class) {
                if (realQuestionSingle == null) {
                    realQuestionSingle = new RealQuestionSingle();
                }
            }
        }
        return realQuestionSingle;
    }


    //添加
    public void addWorks(boolean bean) {
        list.add(bean);
    }

    //获取集合
    public List<Boolean> getWorksList() {
        return list;
    }

    //清空
    public void clearList() {
        list.clear();
    }
}
